package com.liuyu.mall2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("wn_goods")
public class Goods {
    @TableId(type = IdType.AUTO)
    private int id;
    private String name;
    private String no;
    private Integer categoryId;
    private Integer stock;
    private BigDecimal marketPrice;
    private BigDecimal salePrice;
    private String image;
    private String description;
    private String hottest;
    private String newest;
    private LocalDateTime saleTime;
    private String status;
    private String cname;
    private Category  category;
}
